<?php
/* @var $this CallbackController */
/* @var $model Callback */

$this->breadcrumbs=array(
	'Manage Callbacks'=>array('admin'),
	$model->sr_number,
);

$this->menu=array(
	array('label'=>'Update Callback', 'url'=>array('update', 'id'=>$model->sr_number)),
	array('label'=>'Delete Callback', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->sr_number),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

<h1>Viewing Callback for SR#<?php echo $model->sr_number; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'sr_number',
		'date',
		array(
			'name'=>'Q-Shift',
			'value'=>$model->qshift_relation->name),	
		'time',
		array(
			'name'=>'Is Assigned?',
			'value'=>Role::getBooleanValue($model->isAssigned)),	
		array(
			'name'=>'Created By',
			'value'=>$model->createdBy_relation->fullname),	
		array(
			'name'=>'New Owner',
			'value'=> ($model->new_owner != null)? $model->newOwner_relation->fullname : null),			
		'comments',
	),
)); ?>
